package com.study.selection.service;

import com.study.selection.model.Teachering;
import org.springframework.stereotype.Service;

import java.util.List;

public interface TeacheringService {

    List<Teachering> findAll();

    List<Teachering> findByKey(String key);

    boolean addTeachering(Teachering teachering);

    Teachering getByTeacheringId(int teacheringId);//根据授课编号获取对象


    List<Teachering> getByCourseId(int courseId);    //根据课程编号获取对象


    List<Teachering> getByTeacherId(int teacherId);    //根据教师编号获取对象

    boolean updateTeachering(Teachering teachering);
    // 逻辑删除
    boolean deleteTeachering(int teacheringId);

}
